
import MySub from "@/components/MySub";
import { Image } from "@heroui/image";
import { Link } from "@heroui/link";

interface IProps {
    isH1?: boolean
}
export default function MySearch(props: IProps) {


    return (
        <>
            <div className="flex items-center justify-center">

                {
                    props.isH1 ? <div className="flex items-center">
                        <Image
                            alt="夸克4K"
                            className="cursor-pointer"
                            src="/images/wptiba2.png"
                            width={96}
                        />
                        <h1 className="text-[#863ac9] text-5xl ml-1 cursor-pointer">夸克4K</h1>
                    </div> :
                        <Link className="text-[#863ac9] text-5xl ml-1" href="/">
                            <Image
                                alt="夸克4K"
                                className="cursor-pointer"
                                src="/images/wptiba2.png"
                                width={96}
                            />
                            <span>
                                夸克4K
                            </span>
                        </Link>
                }

            </div>
            <div className="flex items-center justify-center mt-4">
                <MySub />
            </div>
            <div className="text-center text-xl font-bold text-blue-950 py-4">
                永久免费  ●  每日精选
            </div>
        </>
    );
}